<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2018/10/24 0024
 * Time: 下午 5:08
 */
namespace app\article\controller\memarticle;
use app\common\api\AApi;
use app\common\api\article\IMemarticle;

class Api extends AApi implements IMemarticle{


    public function __construct(array $config)
    {
        parent::__construct();
    }

    static public $obj;

    static function getInstance(){
        $data =self::$post_data;
        self::$obj=new Memarticle($data);
        return self::$obj;
    }

    public function mem_article()
    {
        $data = self::getInstance();
        $res = $data->mem_article();
        return create_callback($res);
    }
}